package com.ewanghuiju.app.base.contract.pintuan;

import com.ewanghuiju.app.base.BasePresenter;
import com.ewanghuiju.app.base.BaseView;
import com.ewanghuiju.app.model.bean.response.PintuanHeadListResponBean;
import com.ewanghuiju.app.model.bean.response.PintuanShopListResponBean;
import com.ewanghuiju.app.model.bean.response.RuleBean;
import com.ewanghuiju.app.model.bean.response.ShareResponBean;

import java.util.List;

/**
 * @author sj  qq:751943509
 * @class describe
 * @time 2020/2/18
 */
public interface PintuanDetailsContract {

    interface View extends BaseView {

        void showContent(PintuanHeadListResponBean bean);

        void showContentError();

        void showMoreContent(String list);

        void showPtiptGoodsShare(ShareResponBean shareResponBean); //获取分享信息成功

        void showHotShopList(List<PintuanShopListResponBean> list);

        void showPtiguize(RuleBean bean);
    }

    interface Presenter extends BasePresenter<View> {

        void getData(String order_id);

        /**
         * 获取拼团中用户头像
         *
         * @param group_id
         */
        void getPtigroupUserImage(String group_id);

        /**
         * 获取分享信息
         *
         * @param goodsid
         * @param groupid
         */
        void getPtiptGoodsShare(String goodsid, String groupid);

        /**
         * 获取热门团购
         *
         * @param page
         */

        void getHotShopList(int page);

        //规则
        void getPtiguize(String type);
    }
}